// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 4/12/2007 10:47:44
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   TrafoTest.java

package mathematics;

import java.io.PrintStream;

// Referenced classes of package de.escape.quincunx.trafo:
//            Matrix4D, Point3D, Vector3D

public class TrafoTest
{

    public static void main(String args[])
    {
        Vector3D a = new Vector3D(1.0F, 2.0F, 3F);
        Vector3D b = new Vector3D(4F, 5F, 6F);
        Point3D p = new Point3D(10F, 20F, 30F);
        Matrix4D m = new Matrix4D(0.0F, 1.0F, 2.0F, 3F, 4F, 5F, 6F, 7F, 8F, 9F, 10F, 11F, 12F, 13F, 14F, 15F);
        System.out.println("a   = " + a + "\tLength = " + a.length());
        System.out.println("b   = " + b + "\tLength = " + b.length());
        System.out.println("a+b = " + a.plus(b));
        System.out.println("a*b = " + a.mult(b));
        System.out.println("axb = " + a.cross(b));
        System.out.println("p   = " + p);
        System.out.println("a+p = " + a.plus(p));
        System.out.println("p+a = " + p.plus(a));
        System.out.println("m   = " + m);
        System.out.println("m*p = " + m.mult(p));
        System.out.println("m*a = " + m.mult(a));
        System.out.println("m*b = " + m.mult(b));
        Point3D array[] = new Point3D[3];
        array[0] = new Point3D();
        array[1] = new Point3D();
        array[2] = new Point3D();
        array[0].x = array[0].y = array[0].z = 1.0F;
        array[1].x = array[1].y = array[1].z = 2.0F;
        array[2].x = array[2].y = array[2].z = 3F;
        m.scale(2.0F, 2.0F, 2.0F);
        System.out.println("2*m = " + m);
    }

    public TrafoTest()
    {
    }
}